package com.java.base.exercise.designmode.proxy.jdkproxy.proxyimpl;

import net.sf.cglib.proxy.Proxy;

/**
 * @Author RenPu
 * @Date 2022/6/20 14:50
 * @Version 1.0
 * @Description: JDk动态代理工厂
 **/
public class JDkProxyFactory {

    public static Object getProxyObject(Object target){

        return Proxy.newProxyInstance(target.getClass().getClassLoader(),
                                        target.getClass().getInterfaces(),
                 new JDKInvocation(target));
    }


}
